Skip to content

gh-136880: Add warning about PYTHONPATH#151098

Open
glennglazer wants to merge 3 commits into
python:mainfrom
glennglazer:Doc-Venv-136880
Open

gh-136880: Add warning about PYTHONPATH#151098
glennglazer wants to merge 3 commits into
python:mainfrom
glennglazer:Doc-Venv-136880

Conversation

@glennglazer

@glennglazer glennglazer commented Jun 8, 2026

Copy link
Copy Markdown

Warn people that PYTHONPATH is inherited in the venv, this can produce unexpected results such as the wrong library version (if system is different than venv requirements) or even completely incompatible references.

See conversation here:

python#136880

for the request for this documentation update.
@python-cla-bot

python-cla-bot Bot commented Jun 8, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

replace with simple highlighting
@read-the-docs-community

read-the-docs-community Bot commented Jun 8, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33046029 | 📁 Comparing 49583f6 against main (5c13217)

  🔍 Preview build  

2 files changed
± tutorial/venv.html
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant